import request from '@/utils/request.js'

// 点赞
export function doPariseApi(data) {
  return request({
    url: '/User/doPraise',
    method: 'POST',
    data
  })
}
// 取消点赞
export function cancelPariseApi(data) {
  return request({
    url: '/User/cancelPraise',
    method: 'POST',
    data
  })
}
// 获取是否点赞
export function getPraiseStatusApi(data) {
  return request({
    url: '/User/getPraiseStatus',
    method: 'POST',
    data
  })
}
// 获取点赞详情的数据
export function getPraiseApi(openId) {
  return request({
    url: `/User/getPraise?openId=${openId}`,
    method: 'GET',
  })
}
// 对点赞的数据进行备注
export function insertNoteApi(data) {
  return request({
    url: `/User/insertNote`,
    method: 'post',
    data
  })
}
